package com.persistencia.domain;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the detalleevento database table.
 * 
 */
@Entity
@NamedQuery(name="Detalleevento.findAll", query="SELECT d FROM Detalleevento d")
public class Detalleevento implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private DetalleeventoPK id;

	//bi-directional many-to-one association to Evento
	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="codigoEvento")
	private Evento evento;

	public Detalleevento() {
	}

	public DetalleeventoPK getId() {
		return this.id;
	}

	public void setId(DetalleeventoPK id) {
		this.id = id;
	}

	public Evento getEvento() {
		return this.evento;
	}

	public void setEvento(Evento evento) {
		this.evento = evento;
	}

}